// import './assets/main.scss'

import {createApp} from 'vue'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import {VueUiRadar} from 'vue-data-ui'
import 'vue-data-ui/style.css'

// import {createPinia} from 'pinia'

import App from './App.vue'
import router from "@/router/routeIndex.js";
import pinia from "@/stores/piniaIndex.js";

// import {axiosClient} from "@/utils/axiosClient.js";
import axios from "axios";

const app = createApp(App)

// 强制启用 Vue DevTools（生产环境慎用）
app.config.devtools = true

app.use(ElementPlus, {
    locale: zhCn
})
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.component('VueUiRadar', VueUiRadar)
// app.use(createPinia())
app.use(router)
app.use(pinia)
// app.use(axiosClient)
app.config.globalProperties.$axiosClient = axios
app.mount('#app')
